package com.jnevision.leavefeeset.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 请假费用设置
 * </p>
 *
 * @author gavin
 * @since 2019-07-26
 */
@TableName("b_leave_fee_set")
public class LeaveFeeSet extends Model<LeaveFeeSet> {
    private static final long serialVersionUID = -3866799601270786713L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Integer deptId;

    /**
     * 0以天为单位扣款,1以小时为单位扣款
     */
    @TableField("rule")
    private Integer rule;

    /**
     * 不扣款时长
     */
    @TableField("non_deduction_time")
    private String nonDeductionTime;

    /**
     * 超过规定时长按半天算
     */
    @TableField("calc_half_day")
    private String calcHalfDay;

    /**
     * 超过规定时长按一天算
     */
    @TableField("calc_a_day")
    private String calcADay;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getRule() {
        return rule;
    }

    public void setRule(Integer rule) {
        this.rule = rule;
    }

    public String getNonDeductionTime() {
        return nonDeductionTime;
    }

    public void setNonDeductionTime(String nonDeductionTime) {
        this.nonDeductionTime = nonDeductionTime;
    }

    public String getCalcHalfDay() {
        return calcHalfDay;
    }

    public void setCalcHalfDay(String calcHalfDay) {
        this.calcHalfDay = calcHalfDay;
    }

    public String getCalcADay() {
        return calcADay;
    }

    public void setCalcADay(String calcADay) {
        this.calcADay = calcADay;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LeaveFeeSet{" + "id=" + id + ", deptId=" + deptId + ", rule=" + rule + ", nonDeductionTime="
            + nonDeductionTime + ", calcHalfDay=" + calcHalfDay + ", calcADay=" + calcADay + "}";
    }
}